import { post } from "../../../utils/request";
const env = import.meta.env;

const apiLog = {
  queryLogListing(data?: object) {
    return post(
      env.VITE_API_ADMIN_CONTEXT_PATH + "/admin/api/log.listing",
      data
    );
  },
  getLog(logId: string) {
    return post(env.VITE_API_ADMIN_CONTEXT_PATH + "/admin/api/log.get", {
      logId: logId,
    });
  },
  getPrevLog(logId: string) {
    return post(env.VITE_API_ADMIN_CONTEXT_PATH + "/admin/api/log.prev.get", {
      logId: logId,
    });
  },
  getNextLog(logId: string) {
    return post(env.VITE_API_ADMIN_CONTEXT_PATH + "/admin/api/log.next.get", {
      logId: logId,
    });
  },
};

export default apiLog;
